package com.chenglu.android.store.mvp.contract;



import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.goodsinfo.bean.GoodsCommentBean;
import com.chenglu.android.goodsinfo.bean.GoodsInfoBean;
import com.chenglu.android.goodsinfo.bean.ShopsinfoBean;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.store.bean.ChartBangBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public interface StoreContract {

    /**
     *
     * @description model
     *
     */

    public interface StoreModel{





        Observable<ShopsinfoBean> getShopinfo(String tenantId);



        Observable<ChartBangBean> getShopsTypes(String token,int type,String tenantId);


        Observable<IndexRecomBean> getLikeLists(Map<String,String> map);

        Observable<IndexRecomBean> getSearchGoods(Map<String,String> map);


        Observable<IndexRecomBean> getShopsRecommendPage(String tenantId,Map<String,String> map);








    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);




        void getShopinfo(ShopsinfoBean bean);



        void getShopsTypes(ChartBangBean bean);

        void getLikeLists(IndexRecomBean bean);

        void getSearchGoods(IndexRecomBean bean);

        void getShopsRecommendPage(IndexRecomBean bean);








    }

    /**
     *
     * @description presenter
     *
     */

    public interface StorePresenter {




        void getShopinfo(String tenantId);


        void getShopsTypes(String token,int type,String tenantId);

        void getLikeLists(Map<String,String> map);

        void getSearchGoods(Map<String,String> map);

        void getShopsRecommendPage(String tenantId,Map<String,String> map);






    }
}